.class Lorg/zeam/Preferences$12;
.super Ljava/lang/Object;
.source "Preferences.java"

# interfaces
.implements Landroid/preference/Preference$OnPreferenceChangeListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lorg/zeam/Preferences;->loadAppsGridRowsColumns(I)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lorg/zeam/Preferences;

.field private final synthetic val$appsGridContentColumnsPortrait:Lorg/zeam/DialogSeekBarPreference;


# direct methods
.method constructor <init>(Lorg/zeam/Preferences;Lorg/zeam/DialogSeekBarPreference;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lorg/zeam/Preferences$12;->this$0:Lorg/zeam/Preferences;

    iput-object p2, p0, Lorg/zeam/Preferences$12;->val$appsGridContentColumnsPortrait:Lorg/zeam/DialogSeekBarPreference;

    .line 235
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onPreferenceChange(Landroid/preference/Preference;Ljava/lang/Object;)Z
    .locals 4
    .parameter "preference"
    .parameter "value"

    .prologue
    .line 239
    iget-object v2, p0, Lorg/zeam/Preferences$12;->this$0:Lorg/zeam/Preferences;

    invoke-static {v2}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v2

    invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    .line 240
    .local v0, editor:Landroid/content/SharedPreferences$Editor;
    check-cast p2, Ljava/lang/Integer;

    .end local p2
    invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I

    move-result v2

    iget-object v3, p0, Lorg/zeam/Preferences$12;->val$appsGridContentColumnsPortrait:Lorg/zeam/DialogSeekBarPreference;

    invoke-virtual {v3}, Lorg/zeam/DialogSeekBarPreference;->getMin()I

    move-result v3

    add-int v1, v2, v3

    .line 241
    .local v1, intValue:I
    iget-object v2, p0, Lorg/zeam/Preferences$12;->this$0:Lorg/zeam/Preferences;

    const v3, 0x7f0a001f

    invoke-virtual {v2, v3}, Lorg/zeam/Preferences;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-interface {v0, v2, v1}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    .line 242
    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 243
    const/4 v2, 0x1

    return v2
.end method
